package com.lion.ball.modules.orderfood.web.model.params.order;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 桌位动态数据 数据排序请求参数
 * Explain:
 * 所有字段取值规则：-1 降序，0 不排序，1 升序
 */
@Schema(description = "桌位动态数据 排序参数")
public class OfdTableDynamicOrderParam {
    @Schema(description = "主键", example = "1")
    private int id;
    @Schema(description = "桌位编码", example = "1")
    private int tableCode;
    @Schema(description = "动态编码", example = "1")
    private int dynamicCode;
    @Schema(description = "桌位状态", example = "1")
    private int tableStatus;
    @Schema(description = "创建时间", example = "1")
    private int createTime;
    @Schema(description = "更新时间", example = "1")
    private int updateTime;
    @Schema(description = "是否删除", example = "1")
    private int isDeleted;

    // 无参构造方法
    public OfdTableDynamicOrderParam() {
    }

    // 全参数构造方法
    public OfdTableDynamicOrderParam(int id, int tableCode, int dynamicCode, int tableStatus, int createTime, int updateTime, int isDeleted) {
        this.id = id;
        this.tableCode = tableCode;
        this.dynamicCode = dynamicCode;
        this.tableStatus = tableStatus;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
    }

    // 全参数create生成器
    public static OfdTableDynamicOrderParam create(int id, int tableCode, int dynamicCode, int tableStatus, int createTime, int updateTime, int isDeleted) {
        return new OfdTableDynamicOrderParam(id, tableCode, dynamicCode, tableStatus, createTime, updateTime, isDeleted);
    }

    // 全参数of生成器
    public static OfdTableDynamicOrderParam of(int id, int tableCode, int dynamicCode, int tableStatus, int createTime, int updateTime, int isDeleted) {
        return new OfdTableDynamicOrderParam(id, tableCode, dynamicCode, tableStatus, createTime, updateTime, isDeleted);
    }
    // region Getter和Setter方法
    public int getId() {
        return id;
    }

    public OfdTableDynamicOrderParam setId(int id) {
        this.id = id;
        return this;
    }

    public int getTableCode() {
        return tableCode;
    }

    public OfdTableDynamicOrderParam setTableCode(int tableCode) {
        this.tableCode = tableCode;
        return this;
    }

    public int getDynamicCode() {
        return dynamicCode;
    }

    public OfdTableDynamicOrderParam setDynamicCode(int dynamicCode) {
        this.dynamicCode = dynamicCode;
        return this;
    }

    public int getTableStatus() {
        return tableStatus;
    }

    public OfdTableDynamicOrderParam setTableStatus(int tableStatus) {
        this.tableStatus = tableStatus;
        return this;
    }

    public int getCreateTime() {
        return createTime;
    }

    public OfdTableDynamicOrderParam setCreateTime(int createTime) {
        this.createTime = createTime;
        return this;
    }

    public int getUpdateTime() {
        return updateTime;
    }

    public OfdTableDynamicOrderParam setUpdateTime(int updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public OfdTableDynamicOrderParam setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }

    // endregion Getter和Setter方法
}
